package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._0._1继承;

/**
 * @ClassName Animal
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/9 7:10 PM
 * @Version 1.0
 */
public class Animal {
    protected String name;
    protected int shoutNum;

    public Animal(String name){
        this.name = name;
    }

    public Animal(){
        this.name = "无名";
    }

    public int getShoutNum() {
        return this.shoutNum;
    }

    public void setShoutNum(int shotNumber) {
        this.shoutNum = shotNumber;
    }

    public String shout(){
        return "";
    }

}
